﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 公众号群发消息
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2018-09-25 
    /// </summary>
    [Table("WECHAT_MPMESSAGE")]
    public class MPMessageEntity
    {
        /// <summary>
        /// 自然主键
        /// </summary>
        [Key]
        [Column("F_ID")]
        public string Id { get; set; }
        /// <summary>
        /// 全部用户
        /// </summary>
        [Column("F_ISTOALL")]
        public string IsToAll { get; set; }
        /// <summary>
        /// 公众号主键
        /// </summary>
        [Column("F_OPENID")]
        public string OpenId { get; set; }
        /// <summary>
        /// 群发消息类型
        /// </summary>
        [Column("F_MSGTYPE")]
        public int? MsgType { get; set; }
        /// <summary>
        /// 图文标题
        /// </summary>
        [Column("F_TITLE")]
        public string Title { get; set; }
        /// <summary>
        /// 图文消息缩略图的media_id
        /// </summary>
        [Column("F_THUMBMEDIAID")]
        public string ThumbMediaId { get; set; }
        /// <summary>
        /// 作者
        /// </summary>
        [Column("F_AUTHOR")]
        public string Author { get; set; }
        /// <summary>
        /// 原文链接
        /// </summary>
        [Column("F_CONTENTSOURCEURL")]
        public string ContentSourceUrl { get; set; }
        /// <summary>
        /// 图文内容
        /// </summary>
        [Column("F_CONTENT")]
        public string Content { get; set; }
        /// <summary>
        /// 文本内容
        /// </summary>
        [Column("F_TXTCONTENT")]
        public string TxtContent { get; set; }
        /// <summary>
        /// 图文消息的描述
        /// </summary>
        [Column("F_DIGEST")]
        public string Digest { get; set; }
        /// <summary>
        /// 封面状态
        /// </summary>
        [Column("F_SHOWCOVERPIC")]
        public string ShowCoverPic { get; set; }
        /// <summary>
        /// 缩略图的URL
        /// </summary>
        [Column("F_THUMBURL")]
        public string ThumbUrl { get; set; }
        /// <summary>
        /// 是否打开评论
        /// </summary>
        [Column("F_NEEDOPENCOMMENT")]
        public int? NeedOpenComment { get; set; }
        /// <summary>
        /// 是否粉丝才可评论
        /// </summary>
        [Column("F_ONLYFANSCANCOMMENT")]
        public int? OnlyFansCanComment { get; set; }
        /// <summary>
        /// 消息ID
        /// </summary>
        [Column("F_MSGID")]
        public string MsgId { get; set; }
        /// <summary>
        /// 消息数据ID
        /// </summary>
        [Column("F_MSGDATAIID")]
        public string MsgDataIid { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        [Column("F_FILEJSON")]
        public string FileJson { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        [Column("F_SORTCODE")]
        public long? SortCode { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Column("F_DESCRIPTION")]
        public string Description { get; set; }
        /// <summary>
        /// 发送时间
        /// </summary>
        [Column("F_SENDDATE")]
        public DateTime? SendDate { get; set; }
        /// <summary>
        /// 发送人
        /// </summary>
        [Column("F_SENDUSER")]
        public string SendUser { get; set; }
        /// <summary>
        /// 有效标志
        /// </summary>
        [Column("F_ENABLEDMARK")]
        public int? EnabledMark { get; set; }
        /// <summary>
        /// 标签Id
        /// </summary>
        [Column("F_TAGID")]
        public string TagId { get; set; }
    }
}